package com.lovo.sgproj.dao;

import com.lovo.sgproj.bean.ClassBean;

import java.util.ArrayList;

public interface ClassDAO {
    //期望数据库执行：select * from t_class
    public ArrayList<ClassBean> findAllClass();

    //select * from t_class where f_classname = ?
    public ClassBean getClassByName(String className);

    //insert into t_class (f_classname,f_classteacher,f_classtime) values (?,?,?)
    public void insertClass(ClassBean theClass);

    //delete from t_class where pk_classid = ?
    public void deleteClassByID(int classID);
}
